﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Tools : MonoBehaviour
{
    public int hp = 100;
    public bool isHasKeyRomm1 = false;
    public bool isHasKeyRoom2 = false;
    public GameObject showBall;

    //private Component showText;

    private void Awake()
    {
        //showText = showBall.GetComponent<BindShowText>();
    }

    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        showBall.GetComponent<BindShowText>().setHpNub(hp);
        showBall.GetComponent<BindShowText>().showHp();
    }
}
